<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<!--{include file='comm/header.tpl'}-->
	<title>日志管理</title>
	<link rel="stylesheet" type="text/css" href="/framework/JSCal2/src/css/jscal2.css" />
	<link rel="stylesheet" type="text/css" href="/framework/JSCal2/src/css/border-radius.css" />
	<link rel="stylesheet" type="text/css" href="/framework/JSCal2/src/css/steel/steel.css" />
	
</head>
<!--{php}-->
	global $xajax;
	$xajax->printJavascript( "/framework/xajax" );
<!--{/php}-->
<script language="JavaScript" src="/quanliadmin/docroot/js/commonCheck.js" type="text/javascript"></script>
<body>
	<div style="width:100%">
	<!--{include file='comm/menu.tpl'}-->
		<div id='body_content' align="center">
			<div class="tab_bg" style="width:50%;">
				<div class="link click_link_bg" style="text-align:center;width:80px;">
					基本信息
				</div> 
			</div>
			<form method="POST" id='editForm'>
				<table class="comm_edit_table_1" style="width:50%" >
					<tr style="height:30px;">
						<td width="20%" class="td_title">错误级别:</td>
						<td width="70%" class="td_input"><!--{$error_info->errorLevel}--></td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">创建时间:</td>
						<td width="70%" class="td_input"><!--{$error_info->createTime}--></td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">错误时间:</td>
						<td width="70%" class="td_input"><!--{$error_info->occurTime }--></td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">错误信息:</td>
						<td width="70%" class="td_input" style="word-wrap:break-word word-break:break-all;white-space:normal"><!--{$error_info->errorMessage}--></td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">错误文件:</td>
						<td width="70%" class="td_input"><!--{$error_info->errorFile}--></td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">错误行:</td>
						<td width="70%" class="td_input"><!--{$error_info->errorLine}--></td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">站点域名:</td>
						<td width="70%" class="td_input"><!--{$error_info->domainName}--></td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">服务器地址:</td>
						<td width="70%" class="td_input"><!--{$error_info->appServer}--></td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">处理结果:</td>
						<td width="70%" class="td_input">
						<!--{ if $error_info->handleResult == 0}-->
						<a href='javascript:void(0);' onclick='doAction();' id='do_handleResult'>未处理</a>
						<input type="hidden" value='0' name='handleResult' id='handleResult'>
						<!--{else}-->
						已处理
						<!--{/if}-->
						</td>
					</tr>
					<tr style="height:30px;">
						<td width="20%" class="td_title">备注:</td>
						<td width="70%" class="td_input">
							<textarea cols="60" id='note'><!--{$error_info->note}--></textarea>
						</td>
					</tr>
				</table>
				<div style="height:30px;padding-top:8px;">
					<input type="button" id="saveBtn" name="saveBtn" value="保存" style="margin-right:20px;" class="saveCancelBtn">
					<input class="saveCancelBtn"  id="closeBtn" type="button" value="关闭" onclick="doCloseWindows()">					
				</div>
			</form>
		</div>
		<!--{include file='comm/footer.tpl'}-->
	</div>
</body>
<script type="text/javascript">
function doAction(){
	if($('#handleResult').val() == 0){
		$('#handleResult').val(1);
		$('#do_handleResult').html('已处理');
	}else{
		$('#handleResult').val(0);
		$('#do_handleResult').html('未处理');
	}
}
$('#saveBtn').click(function(){
	var handleResult = $("#handleResult").val();
	var note = $("#note").val();
	var uuid = '<!--{$error_info->uuid}-->';
	if(handleResult == undefined){
		handleResult = 1;
	}
	xajax_editError(uuid,handleResult,note);
})
</script>
</html>
